﻿using AutoMapper;
using S.Organization.Domian.Model;
using S.Organization.API.Application.Command.SheepFarmCommand;
using S.Organization.API.Application.Command.CottageCommand;
using S.Organization.API.Application.Command.SupplierCommand;
using S.Organization.API.Application.Command.FieldSettingCommand;
using S.Organization.API.Application.Command.ClientClientCommand;
using S.Organization.API.Application.Command.SubcultivationCommand;

namespace S.Organization.API.Extensions
{
    public class SheepFarmProfile: Profile
    {
        public SheepFarmProfile()
        {
            CreateMap<AddSheepFarmCommand,SheepFarmSetting>().ReverseMap();
            CreateMap<UpdSheepFarmCommand,SheepFarmSetting>().ReverseMap();
            CreateMap<AddCottageCommand, CottageSetting>().ReverseMap();
            CreateMap<UpdCottageCommand, CottageSetting>().ReverseMap();
            CreateMap<AddSupplierCommand, Supplier>().ReverseMap();
            CreateMap<UpdSupplierCommand, Supplier>().ReverseMap();
            CreateMap<UpdFieldSettingCommand, FieldSetting>().ReverseMap();
            CreateMap<AddClientCommand, Client>().ReverseMap();
            CreateMap<AddSubcultivationCommand, Subcultivation>().ReverseMap();
            CreateMap<UpdSubcultivationCommand, Subcultivation>().ReverseMap();
        }


    }
}
